#!/usr/bin/env python
# -*- coding:utf-8 -*-

from sqlalchemy import create_engine, ForeignKey, Column, String, Integer, CHAR
from sqlalchemy.ext.declarative import declarative_base
# https://www.cnblogs.com/chenxi67/p/10376617.html

Base = declarative_base()

class Todolist(Base):
    __tablename__ = "homework"

    order = Column("order", Integer, autoincrement=True,primary_key=True)
    content = Column("content", String(255))
    condition = Column("condition", String(255), default="Done")

    def __init__(self, content):
        self.content = content

